<?php

namespace App\Api;


use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use SearchService;

class SearchController extends Controller
{
    public function search(Request $request)
    {
        $lists = SearchService::generate($request->word);
        return $lists;
    }

    public function default()
    {
        $lists = SearchService::defaultData();
        return $lists;
    }
}
